from django.conf.urls import url
from . import views

urlpatterns = [
    # 吐槽列表
    url(r'^spit/$', views.SpitListView.as_view()),
    # 吐槽详情
    url(r'^spit/(?P<pk>\d+)/$', views.SpitDetailView.as_view()),
    # 吐槽详情评论列表
    url(r'^spit/comments/(?P<spit_id>\d+)/$', views.SpitCommentsListView.as_view()),
    # 发布吐槽
    url(r'^spit/submitspit/$', views.SpitSubmitView.as_view()),
    # 发布评论
    url(r'^spit/submitcomments/$', views.SpitCommentCreateView.as_view()),
    # 点赞吐槽
    url(r'^spit/spitlike/(?P<spit_id>\d+)/$', views.SpitLikeView.as_view()),
    # 点赞评论
    url(r'^spit/commentslike/(?P<comment_id>\d+)/$', views.SpitCommentsLikeView.as_view()),
    # 收藏吐槽
    url(r'^spit/spitcollection/$', views.SpitCollectView.as_view()),
]
